package com.crm.system.service.productManager;

import com.alibaba.fastjson.JSONObject;
import com.crm.model.qo.productManager.CustomerMemberCardServingQO;

import java.util.List;

/**
 * @author luojie
 * @date 2021/4/12 16:48
 */
public interface CustomerMemberCardServingService {

    /***
     * @Description: 查询会员卡服务一级类型接口
     * @Param: parentId 父id
     * @Author: luojie
     * @Date: 2021/4/12 16:37
     */
    List<JSONObject> selectMemberCardServingDropDownList(String parentId, String memberProductRelationId);

    /***
     * @Description:保存会员卡服务配置项
     * @Param:CustomerMemberCardServingQO 保存会员卡服务配置项类
     * @Author: luojie
     * @Date: 2021/4/13 10:28
     */
    Boolean addMemberCardServing(CustomerMemberCardServingQO customerMemberCardServingQO);

    /***
     * @Description:删除会员服务产品和服务项关系表数据
     * @Param: memberProductRelationId 会员服务产品和服务项关系表主键
     * @Author: luojie
     * @Date: 2021/4/13 13:48
     */
    Boolean deleteMemberCardServingById(String memberProductRelationId);

    /***
     * @Description: 添加服务明细
     * @param parentId 父id
     * @param name 服务名称
     * @Author: luojie
     * @Date: 2021/4/13 16:30
     */
    String addServingDetail(String parentId,String name);

}
